import Vue from 'vue'
import VueRouter from 'vue-router'
//导入对应的路由组件
import HomeContianer from './components/tabbar/HomeContianer.vue'
import MemberContianer from './components/tabbar/MemberContianer.vue'
import ShopcarContianer from './components/tabbar/ShopcarContianer.vue'
import SearchContianer from './components/tabbar/SearchContianer.vue'
Vue.use(VueRouter)
var router = new VueRouter({
        routes: [ //配置路由规则的
            { path: '/Home', component: HomeContianer },
            { path: '/Shopcar', component: ShopcarContianer },
            { path: '/Member', component: MemberContianer },
            { path: '/Search', component: SearchContianer }

        ],
        linkActiveClass: 'mui-active'

    })
    //暴露路由对象出去
export default router